package com.darkplanet.management.service;

import com.darkplanet.management.dao.EmployeeRoleDaoImp;

import com.darkplanet.management.domain.EmployeeRole;


import java.util.List;

public class EmployeeRoleService {
    EmployeeRoleDaoImp employeeRoleDao = new EmployeeRoleDaoImp();

    public boolean deleteEmployeeRoleById(Integer employee_id){
        employeeRoleDao.deleteEmployeeRoleById(employee_id);
        return true;
    }

    public boolean addEmployeeRoleById(Integer employee_id,Integer role_id){
        employeeRoleDao.addEmployeeRole(employee_id,role_id);
        return true;
    }

    public List<EmployeeRole> getEmployeeRoles(Integer employee_id){
        return employeeRoleDao.getEmployeeRolesById(employee_id);
    }
}
